package mn.idax.exchange.otc.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OTCCommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OTCCommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNull() {
            addCriterion("OrderNum is null");
            return (Criteria) this;
        }

        public Criteria andOrdernumIsNotNull() {
            addCriterion("OrderNum is not null");
            return (Criteria) this;
        }

        public Criteria andOrdernumEqualTo(String value) {
            addCriterion("OrderNum =", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotEqualTo(String value) {
            addCriterion("OrderNum <>", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThan(String value) {
            addCriterion("OrderNum >", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumGreaterThanOrEqualTo(String value) {
            addCriterion("OrderNum >=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThan(String value) {
            addCriterion("OrderNum <", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLessThanOrEqualTo(String value) {
            addCriterion("OrderNum <=", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumLike(String value) {
            addCriterion("OrderNum like", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotLike(String value) {
            addCriterion("OrderNum not like", value, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumIn(List<String> values) {
            addCriterion("OrderNum in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotIn(List<String> values) {
            addCriterion("OrderNum not in", values, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumBetween(String value1, String value2) {
            addCriterion("OrderNum between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andOrdernumNotBetween(String value1, String value2) {
            addCriterion("OrderNum not between", value1, value2, "ordernum");
            return (Criteria) this;
        }

        public Criteria andCommentuseridIsNull() {
            addCriterion("CommentUserId is null");
            return (Criteria) this;
        }

        public Criteria andCommentuseridIsNotNull() {
            addCriterion("CommentUserId is not null");
            return (Criteria) this;
        }

        public Criteria andCommentuseridEqualTo(Integer value) {
            addCriterion("CommentUserId =", value, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridNotEqualTo(Integer value) {
            addCriterion("CommentUserId <>", value, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridGreaterThan(Integer value) {
            addCriterion("CommentUserId >", value, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("CommentUserId >=", value, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridLessThan(Integer value) {
            addCriterion("CommentUserId <", value, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridLessThanOrEqualTo(Integer value) {
            addCriterion("CommentUserId <=", value, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridIn(List<Integer> values) {
            addCriterion("CommentUserId in", values, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridNotIn(List<Integer> values) {
            addCriterion("CommentUserId not in", values, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridBetween(Integer value1, Integer value2) {
            addCriterion("CommentUserId between", value1, value2, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andCommentuseridNotBetween(Integer value1, Integer value2) {
            addCriterion("CommentUserId not between", value1, value2, "commentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridIsNull() {
            addCriterion("BeCommentUserId is null");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridIsNotNull() {
            addCriterion("BeCommentUserId is not null");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridEqualTo(Integer value) {
            addCriterion("BeCommentUserId =", value, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridNotEqualTo(Integer value) {
            addCriterion("BeCommentUserId <>", value, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridGreaterThan(Integer value) {
            addCriterion("BeCommentUserId >", value, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("BeCommentUserId >=", value, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridLessThan(Integer value) {
            addCriterion("BeCommentUserId <", value, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridLessThanOrEqualTo(Integer value) {
            addCriterion("BeCommentUserId <=", value, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridIn(List<Integer> values) {
            addCriterion("BeCommentUserId in", values, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridNotIn(List<Integer> values) {
            addCriterion("BeCommentUserId not in", values, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridBetween(Integer value1, Integer value2) {
            addCriterion("BeCommentUserId between", value1, value2, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andBecommentuseridNotBetween(Integer value1, Integer value2) {
            addCriterion("BeCommentUserId not between", value1, value2, "becommentuserid");
            return (Criteria) this;
        }

        public Criteria andAdidIsNull() {
            addCriterion("AdId is null");
            return (Criteria) this;
        }

        public Criteria andAdidIsNotNull() {
            addCriterion("AdId is not null");
            return (Criteria) this;
        }

        public Criteria andAdidEqualTo(Integer value) {
            addCriterion("AdId =", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidNotEqualTo(Integer value) {
            addCriterion("AdId <>", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidGreaterThan(Integer value) {
            addCriterion("AdId >", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidGreaterThanOrEqualTo(Integer value) {
            addCriterion("AdId >=", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidLessThan(Integer value) {
            addCriterion("AdId <", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidLessThanOrEqualTo(Integer value) {
            addCriterion("AdId <=", value, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidIn(List<Integer> values) {
            addCriterion("AdId in", values, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidNotIn(List<Integer> values) {
            addCriterion("AdId not in", values, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidBetween(Integer value1, Integer value2) {
            addCriterion("AdId between", value1, value2, "adid");
            return (Criteria) this;
        }

        public Criteria andAdidNotBetween(Integer value1, Integer value2) {
            addCriterion("AdId not between", value1, value2, "adid");
            return (Criteria) this;
        }

        public Criteria andCommenttypeIsNull() {
            addCriterion("CommentType is null");
            return (Criteria) this;
        }

        public Criteria andCommenttypeIsNotNull() {
            addCriterion("CommentType is not null");
            return (Criteria) this;
        }

        public Criteria andCommenttypeEqualTo(Integer value) {
            addCriterion("CommentType =", value, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeNotEqualTo(Integer value) {
            addCriterion("CommentType <>", value, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeGreaterThan(Integer value) {
            addCriterion("CommentType >", value, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("CommentType >=", value, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeLessThan(Integer value) {
            addCriterion("CommentType <", value, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeLessThanOrEqualTo(Integer value) {
            addCriterion("CommentType <=", value, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeIn(List<Integer> values) {
            addCriterion("CommentType in", values, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeNotIn(List<Integer> values) {
            addCriterion("CommentType not in", values, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeBetween(Integer value1, Integer value2) {
            addCriterion("CommentType between", value1, value2, "commenttype");
            return (Criteria) this;
        }

        public Criteria andCommenttypeNotBetween(Integer value1, Integer value2) {
            addCriterion("CommentType not between", value1, value2, "commenttype");
            return (Criteria) this;
        }

        public Criteria andTradetypeIsNull() {
            addCriterion("TradeType is null");
            return (Criteria) this;
        }

        public Criteria andTradetypeIsNotNull() {
            addCriterion("TradeType is not null");
            return (Criteria) this;
        }

        public Criteria andTradetypeEqualTo(Integer value) {
            addCriterion("TradeType =", value, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeNotEqualTo(Integer value) {
            addCriterion("TradeType <>", value, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeGreaterThan(Integer value) {
            addCriterion("TradeType >", value, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("TradeType >=", value, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeLessThan(Integer value) {
            addCriterion("TradeType <", value, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeLessThanOrEqualTo(Integer value) {
            addCriterion("TradeType <=", value, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeIn(List<Integer> values) {
            addCriterion("TradeType in", values, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeNotIn(List<Integer> values) {
            addCriterion("TradeType not in", values, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeBetween(Integer value1, Integer value2) {
            addCriterion("TradeType between", value1, value2, "tradetype");
            return (Criteria) this;
        }

        public Criteria andTradetypeNotBetween(Integer value1, Integer value2) {
            addCriterion("TradeType not between", value1, value2, "tradetype");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("Content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("Content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("Content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("Content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("Content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("Content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("Content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("Content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("Content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("Content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("Content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("Content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("Content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("Content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andCommenttimeIsNull() {
            addCriterion("CommentTime is null");
            return (Criteria) this;
        }

        public Criteria andCommenttimeIsNotNull() {
            addCriterion("CommentTime is not null");
            return (Criteria) this;
        }

        public Criteria andCommenttimeEqualTo(Date value) {
            addCriterion("CommentTime =", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeNotEqualTo(Date value) {
            addCriterion("CommentTime <>", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeGreaterThan(Date value) {
            addCriterion("CommentTime >", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CommentTime >=", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeLessThan(Date value) {
            addCriterion("CommentTime <", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeLessThanOrEqualTo(Date value) {
            addCriterion("CommentTime <=", value, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeIn(List<Date> values) {
            addCriterion("CommentTime in", values, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeNotIn(List<Date> values) {
            addCriterion("CommentTime not in", values, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeBetween(Date value1, Date value2) {
            addCriterion("CommentTime between", value1, value2, "commenttime");
            return (Criteria) this;
        }

        public Criteria andCommenttimeNotBetween(Date value1, Date value2) {
            addCriterion("CommentTime not between", value1, value2, "commenttime");
            return (Criteria) this;
        }

        public Criteria andIscontentIsNull() {
            addCriterion("IsContent is null");
            return (Criteria) this;
        }

        public Criteria andIscontentIsNotNull() {
            addCriterion("IsContent is not null");
            return (Criteria) this;
        }

        public Criteria andIscontentEqualTo(Boolean value) {
            addCriterion("IsContent =", value, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentNotEqualTo(Boolean value) {
            addCriterion("IsContent <>", value, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentGreaterThan(Boolean value) {
            addCriterion("IsContent >", value, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentGreaterThanOrEqualTo(Boolean value) {
            addCriterion("IsContent >=", value, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentLessThan(Boolean value) {
            addCriterion("IsContent <", value, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentLessThanOrEqualTo(Boolean value) {
            addCriterion("IsContent <=", value, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentIn(List<Boolean> values) {
            addCriterion("IsContent in", values, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentNotIn(List<Boolean> values) {
            addCriterion("IsContent not in", values, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentBetween(Boolean value1, Boolean value2) {
            addCriterion("IsContent between", value1, value2, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIscontentNotBetween(Boolean value1, Boolean value2) {
            addCriterion("IsContent not between", value1, value2, "iscontent");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNull() {
            addCriterion("IsDelete is null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNotNull() {
            addCriterion("IsDelete is not null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteEqualTo(Boolean value) {
            addCriterion("IsDelete =", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotEqualTo(Boolean value) {
            addCriterion("IsDelete <>", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThan(Boolean value) {
            addCriterion("IsDelete >", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThanOrEqualTo(Boolean value) {
            addCriterion("IsDelete >=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThan(Boolean value) {
            addCriterion("IsDelete <", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThanOrEqualTo(Boolean value) {
            addCriterion("IsDelete <=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIn(List<Boolean> values) {
            addCriterion("IsDelete in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotIn(List<Boolean> values) {
            addCriterion("IsDelete not in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteBetween(Boolean value1, Boolean value2) {
            addCriterion("IsDelete between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotBetween(Boolean value1, Boolean value2) {
            addCriterion("IsDelete not between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("UpdateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("UpdateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("UpdateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("UpdateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("UpdateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("UpdateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountIsNull() {
            addCriterion("UserUpdateCount is null");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountIsNotNull() {
            addCriterion("UserUpdateCount is not null");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountEqualTo(Integer value) {
            addCriterion("UserUpdateCount =", value, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountNotEqualTo(Integer value) {
            addCriterion("UserUpdateCount <>", value, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountGreaterThan(Integer value) {
            addCriterion("UserUpdateCount >", value, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountGreaterThanOrEqualTo(Integer value) {
            addCriterion("UserUpdateCount >=", value, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountLessThan(Integer value) {
            addCriterion("UserUpdateCount <", value, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountLessThanOrEqualTo(Integer value) {
            addCriterion("UserUpdateCount <=", value, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountIn(List<Integer> values) {
            addCriterion("UserUpdateCount in", values, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountNotIn(List<Integer> values) {
            addCriterion("UserUpdateCount not in", values, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountBetween(Integer value1, Integer value2) {
            addCriterion("UserUpdateCount between", value1, value2, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andUserupdatecountNotBetween(Integer value1, Integer value2) {
            addCriterion("UserUpdateCount not between", value1, value2, "userupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountIsNull() {
            addCriterion("StaffUpdateCount is null");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountIsNotNull() {
            addCriterion("StaffUpdateCount is not null");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountEqualTo(Integer value) {
            addCriterion("StaffUpdateCount =", value, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountNotEqualTo(Integer value) {
            addCriterion("StaffUpdateCount <>", value, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountGreaterThan(Integer value) {
            addCriterion("StaffUpdateCount >", value, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountGreaterThanOrEqualTo(Integer value) {
            addCriterion("StaffUpdateCount >=", value, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountLessThan(Integer value) {
            addCriterion("StaffUpdateCount <", value, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountLessThanOrEqualTo(Integer value) {
            addCriterion("StaffUpdateCount <=", value, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountIn(List<Integer> values) {
            addCriterion("StaffUpdateCount in", values, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountNotIn(List<Integer> values) {
            addCriterion("StaffUpdateCount not in", values, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountBetween(Integer value1, Integer value2) {
            addCriterion("StaffUpdateCount between", value1, value2, "staffupdatecount");
            return (Criteria) this;
        }

        public Criteria andStaffupdatecountNotBetween(Integer value1, Integer value2) {
            addCriterion("StaffUpdateCount not between", value1, value2, "staffupdatecount");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}